package com.bestcem.xm.ticket.controller.param.ticket.notify.setting;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/8/26 18:18
 */
@Data
public class UpdateSettingParam {

    @JsonProperty(value = "orgID")
    private String orgId;
    @JsonProperty(value = "id")
    private String id;
    @JsonProperty(value = "ways")
    private Way way;

    /**
     * 通知方式
     *
     * @author XiaoYunSong <ys.xiao@idiaoyan.com>
     * @version v1.0
     * @date 2021/8/10 17:50
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Way implements Serializable {

        private static final long serialVersionUID = -1783233896759363975L;

        /**
         * 是否开启邮箱通知
         */
        @JsonProperty(value = "email")
        private Boolean email;

        /**
         * 是否开启短信通知
         */
        @JsonProperty(value = "sms")
        private Boolean sms;

        /**
         * 是否开启飞书通知
         */
        @JsonProperty(value = "feishu")
        private Boolean feiShu;

        /**
         * 是否开启企业微信通知
         */
        @JsonProperty(value = "wechatwork")
        private Boolean weChatWork;

        /**
         * 是否开启钉钉通知
         */
        @JsonProperty(value = "dingtalk")
        private Boolean dingtalk;
    }
}
